LCD
 
Component LCD
Liquid Crystal Display
Component Level: Low
Typical Usage:
(Examples of a typical usage of the component in user code. For more information please see the page Component Code Typical Usage.)

A seven-segment display is controlled by the LCD drive in this example. You can connect a LCD display according to the following schema. Select mode of the display with 1 backplane. On the CPU family, that supports properties "number of used frontplanes" and "number of used backplanes", select number of used frontplanes = 7, number of used backplanes = 1. Select other properties depending on the type of the LCD display.
The program contains predefined table of constants which is used to display numbers from 0 to 9.

  /* table of constants for displaying of the numbers */
  static byte codeTable[10][7] = {{1,1,1,1,1,1,0},
                                  {0,1,1,0,0,0,0},
                                  {1,1,0,1,1,0,1},
                                  {1,1,1,1,0,0,1},
                                  {0,1,1,0,0,1,1},
                                  {1,0,1,1,0,1,1},
                                  {1,0,1,1,1,1,1},
                                  {1,1,1,0,0,0,0},
                                  {1,1,1,1,1,1,1},
                                  {1,1,1,1,0,1,1}};
                                  
                                  
    /* display number 0 on the display */
    LCD1_SetData(codeTable[0]);
    
    ...
     
    /* display number 9 on the display */
    LCD1_SetData(codeTable[9]);